<table id="activity_listing">
<?if($sales->num_rows()):?>
	<?foreach($sales->result() as $sale):?>
	<tr>
		<td><?=date('M d,Y (h:m a)',strtotime($sale->sale_created))?></td>
		<td><b>Total:</b> P <?=number_format($sale->sale_total,2,'.',',')?></td>
	</tr>
	<tr>
		<td></td>
		<td colspan="2">
			<b>Item(s):</b><br/>
			<?=$sale->item_list;?>
		</td>
	</tr>
	<tr>
		<td></td>
		<td colspan="2"><b>comment:</b> <?=$sale->sale_comment ? $sale->sale_comment : 'none.';?></td>
	</tr>
	<?endforeach;?>
<?else:?>
	<tr>
		<td style="text-align:center">No Recent Sale.</td>
	</tr>
<?endif;?>
</table>